package com.usian.user.feign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("leadnews-wemedia")
@Component
public interface WemediaFeign {
    @PostMapping("/api/v1/user/save")
    ResponseResult save(WmUser wmUser);
    @GetMapping("/api/v1/user/findByName/{name}")
    WmUser findByName(@PathVariable String name);
    @PostMapping("/api/v1/user/updateById")
    ResponseResult updateById(WmUser wmUser);
}
